<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * HITI Web Develop
 *
 * @package     HITI Web Dev
 * @category    Controllers
 * @see 		Home
 * @author      PHUOCNGUYEN - HITI Dev Team
 * @copyright   Copyright (c) 2013, HITI Corp
 */

class Home extends CI_Controller {
	var $header;
	var $footer;

	public function __construct()
	{
		parent::__construct();
		$this->load->model('hiti_common_model', 'hiti', true);
		$this->hiti->hiti_init();
		$this->header = $this->hiti->header_templ();
		$this->footer = $this->hiti->footer_templ();
		$this->load->model('product_model', 'pro', true);
	}

	public function index()
	{
		$data = array(
			'list_hot' => $this->pro->show(5, false, '', '', 'hot'),
			//'list_sale' => $this->pro->show(5, false, '', '', 'sale'),
            
		);
		/*
		* Hien thi
		*/
		$this->load->view('header', $this->header);
		$this->load->view('home', $data);
		$this->load->view('footer', $this->footer);
	}
}

/* End of file home.php */
/* Location: ./application/controllers/home.php */